package cn.weiyuanbiao.DbGeneralCore.entity;

import cn.weiyuanbiao.DbGeneralCore.util.FieldToClassUtil;

/**
 * 字段实体
 * @author weiyuanbiao
 *
 */
public class ClassFieldEntity {
	/**字段名称*/
	private String fieldName;
	/**字段类型*/
	private String fieldType;
	/**字段注释*/
	private String fieldNote;

	public String getFieldName() {
		return fieldName;
	}

	public void setFieldName(String fieldName) {
		this.fieldName = fieldName;
	}

	public String getFieldType() {
		return fieldType;
	}

	public void setFieldType(String fieldType) {
		// System.err.println(fieldName + " : " + fieldType);
		String type = FieldToClassUtil.getClassField(fieldType);
		this.fieldType = type;
	}

	public String getFieldNote() {
		return fieldNote;
	}

	public void setFieldNote(String fieldNote) {
		this.fieldNote = fieldNote;
	}

	@Override
	public String toString() {
		return "FieldEntity [fieldName=" + fieldName + ", fieldNote=" + fieldNote + ", fieldType=" + fieldType + "]";
	}

}
